package com.iss.card.model;

import java.io.Serializable;

import com.iss.card.webservice.BaseModel;

public class StoreTypeInfo extends BaseModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6885334232256443865L;
	private final static String ITEM_VALUE = "ItemValue";
	private final static String ITEM_NAME = "ItemName";

	private String mTypeId;
	private String mTypeName;

	/**
	 * @return the mTypeId
	 */
	public synchronized final String getTypeId() {
		return mTypeId;
	}

	/**
	 * @param typeId the type Id to set
	 */
	public synchronized final void setTypeId(String typeId) {
		this.mTypeId = typeId;
	}

	/**
	 * @return the mTypeName
	 */
	public synchronized final String getTypeName() {
		return mTypeName;
	}

	/**
	 * @param typeName the type Name to set
	 */
	public synchronized final void setTypeName(String typeName) {
		this.mTypeName = typeName;
	}

	/**
	 * <data>
	 * 	<ItemName>男装</ItemName>
	 * 	<ItemValue>1</ItemValue>
	 * </data>
	 * <data>
	 * 	<ItemName>女装</ItemName>
	 * 	<ItemValue>2</ItemValue>
	 * </data>
	 */
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if (null == tempString) {
			return;
		}
		if (tempString.equals(ITEM_NAME)) {
			this.mTypeName = valueString;
		} else if (tempString.equals(ITEM_VALUE)) {
			this.mTypeId = valueString;
		}
		baseMode = this;
	}
}
